package game

import (
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type UrlRouter struct{}

func (s *GameInfoRouter) InitUrlRouter(Router *gin.RouterGroup, RouterPub *gin.RouterGroup) {
	apiRouter := Router.Group("url").Use(middleware.OperationRecord())
	{
		apiRouter.POST("getUrlList", urlApi.GetUrlList) // 获取路由组
		apiRouter.POST("createUrl", urlApi.CreateUrl)   // 创建Api
		apiRouter.DELETE("deleteUrl", urlApi.DeleteUrl) // 删除Api
		apiRouter.GET("getUrl", urlApi.GetUrlById)      // 获取单条Api消息
		apiRouter.PUT("updateUrl", urlApi.UpdateUrl)    // 更新api
	}
}
